'use strict';

const {
  SITE_NAVIGATION_CATCE_KEY,
} = require('../../../../config/redisKey');

exports.index = async ctx => {
  ctx.sendSuccess(await ctx.getCache(SITE_NAVIGATION_CATCE_KEY, async () => {
    return await ctx.service.siteNavigation.all()
  }, true));
};
